<UserControl x:Class="WPFExcelReport.UQPSM1"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
              xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"   
      >
    <UserControl.Resources>
         <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTConverter x:Key="not"/>        
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </UserControl.Resources>
    <StackPanel>
        <WrapPanel>
            <Grid Grid.Row="0" Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=回潮率:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S001, Converter={StaticResource gb2312}}" Width="60" />
            </Grid>
            <Grid  Grid.Row="1" Margin="5,5,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=马克隆值:}}"></TextBlock>
                <ex:NumericBox  Grid.Column="1"  MaxLength="10" DecimalPlaces="2"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S002, Converter={StaticResource gb2312}}" Width="80" />
            </Grid>

            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="190"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=断裂比强度（cN/tex）:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S003, Converter={StaticResource gb2312}}" Width="80" />
            </Grid>

            <Grid  Grid.Row="1" Margin="5,5,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="190"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=上半部平均长度(mm):}}"></TextBlock>
                <ex:NumericBox  Grid.Column="1"  MaxLength="10" DecimalPlaces="2"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S004, Converter={StaticResource gb2312}}" Width="80" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=棉结（粒/g）:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S005, Converter={StaticResource gb2312}}" Width="60" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=颜色评语:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1"  MaxLength="20" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S006, Converter={StaticResource gb2312}}" Width="120" />
            </Grid>
        </WrapPanel>
        <WrapPanel>
            <Grid  Grid.Row="1" Margin="0,5,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=颜色级别:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1"  MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S007, Converter={StaticResource gb2312}}" Width="60" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=颜色结论:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1"  MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S008, Converter={StaticResource gb2312}}" Width="80" />
            </Grid>
            <Grid  Grid.Row="1" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="190"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=颜色均匀性评语:}}"></TextBlock>
                <ex:TXT72  Grid.Column="1"  MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S009, Converter={StaticResource gb2312}}" Width="80" />
            </Grid>

            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="190"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=颜色均匀性结论:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1"  MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S010, Converter={StaticResource gb2312}}" Width="80" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=色牢度级别:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S011, Converter={StaticResource gb2312}}" Width="60" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=色牢度结论:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1"  MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S012, Converter={StaticResource gb2312}}" Width="120" />
            </Grid>


        </WrapPanel>
        <WrapPanel>
            <Grid  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"  Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=备注:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1" MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding S013, Converter={StaticResource gb2312}}" Width="500" />


            </Grid>
        </WrapPanel>
    </StackPanel>
</UserControl>
